/********************************************************************************
  DESCRIPTION OF THE FILE HERE
********************************************************************************/

#ifndef THREAD_LIST_H
#define THREAD_LIST_H

#include "common.h"
#include "request.h"

typedef struct SThreadList * ptrThreadList; 

ptrThreadList ThreadList_create();

void ThreadList_addNewThread(ptrThreadList);
void ThreadList_assignSendAndCloseConnection(ptrThreadList, ptrRequest, int);
void ThreadList_cutOffThread(ptrThreadList, int);

int ThreadList_getSize();

void ThreadList_destroy(ptrThreadList);

void ThreadList_fprintfStatistics(ptrThreadList, FILE *);

#ifdef DEBUG
void ThreadList_printf (ptrThreadList);
#endif /* DEBUG */

#endif /*THREAD_LIST_H*/
